interface EmpowerWechatAPIResData {
  code: number
  data: null
  msg: string
  time: string
}

interface EmpowerWechatAPIData {
  code: string
  iv: string
  encryptedData: string
}

export function empowerWechatAPI(data: EmpowerWechatAPIData, token: string) {
  return httpInstance.post<EmpowerWechatAPIResData, EmpowerWechatAPIData>(
    '/api/user/wechat_empower',
    data,
    { headers: { token } },
  )
}
